<div class="navbar navbar-default navbar-fixed-top" id="navbar">


    <div class="navbar-container container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="icon-leaf"></i>
                    jetstar
                </small>
            </a><!-- /.brand -->
        </div><!-- /.navbar-header -->

        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">


                <li class="green ">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="icon-envelope icon-animated-vertical"></i>
                        <span class="badge badge-success"> <span class="notNum">{{$notiNum}}</span></span>
                    </a>

                    <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close jet_message">
                        <li class="dropdown-header">
                            <i class="icon-envelope-alt"></i>
                            <span class="notNum">{{$notiNum}}</span>条系统消息
                        </li>
                        {{if $notiNum neq 0}}{{foreach from = $noti item = nt}}
                        <li data-id="{{$nt.id}}" class="message-li">
                            <a href="#">
                                <img src="{{__PUBLIC__}}/assets/ace/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
										<span class="msg-body">

											<span class="msg-title">
												<span class="blue">{{$nt.sender}}</span>
												{{$nt.content}}
											</span>
										</span>
                            </a>
                        </li>
                        {{/foreach}}{{/if}}
                        {{if $notiNum neq 0}}
                        <li>
                            <a href="inbox.html">
                               查看所有通知
                                <i class="icon-arrow-right"></i>
                            </a>
                        </li>
                        {{/if}}
                    </ul>
                </li>

                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="{{__PUBLIC__}}/assets/ace/avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>欢迎光临,</small>
									{{$user|default:"游客"}}
								</span>

                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a href="#">
                                <i class="icon-cog"></i>
                                设置
                            </a>
                        </li>
                        {{if $status eq true}}
                        <li>
                            <a href="/account/{{$user}}">
                                <i class="icon-user"></i>
                                个人主页
                            </a>
                        </li>
                        {{/if}}

                        <li>
                            <a href="#">
                                <i class="icon-user"></i>
                                个人资料
                            </a>
                        </li>

                        <li class="divider"></li>

                        <li>
                            {{if $status eq false}}
                            <a href="/account/login/">
                                <i class="icon-off"></i>
                                登录
                            </a>
                            {{else}}
                            <a href="javascript:;" class="logout">
                                <i class="icon-off "></i>
                                退出
                            </a>
                            {{/if}}

                        </li>
                    </ul>
                </li>
            </ul><!-- /.ace-nav -->
        </div><!-- /.navbar-header -->
    </div><!-- /.container -->
</div>